<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common/header.jsp" %>
<div id="content">
    <div class="inner" style="min-height: 700px;">

            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header" style="text-align: center"> 开发者：新增APP信息 </h1>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="box dark">
                        <div id="div-1" class="accordion-body collapse in body">
                        <form class="form-horizontal " method="post" action="${pageContext.request.contextPath}/dev/flatform/app/addAPP" enctype="multipart/form-data">
                            <div class="form-group">
                                <label for="text1" class="control-label col-lg-2">
                                    软件名称 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text1" name="softwareName" class="form-control "
                                           data-validate-length-range="20" data-validate-words="1" required
                                           placeholder="请输入软件名称" value="${appinfo.softwareName}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="text2" class="control-label col-lg-2">
                                    APK名称 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text2" id="APKName" name="APKName" class="form-control "
                                           data-validate-length-range="20" data-validate-words="1" required
                                           placeholder="请输入APK名称" value="${appinfo.APKName}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="text3" class="control-label col-lg-2">
                                    支持ROM <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text3" name="supportROM" class="form-control "
                                           data-validate-length-range="20" data-validate-words="1" required
                                           placeholder="请输入支持的ROM" value="${appinfo.supportROM}">
                                </div>
                            </div>
                            <div class=" form-group">
                                <label for="text4" class="control-label col-lg-2">
                                    界面语言 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text4" name="interfaceLanguage" class="form-control "
                                           data-validate-length-range="20" data-validate-words="1" required
                                           placeholder="请输入界面语言" value="${appinfo.interfaceLanguage}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-lg-2">
                                    软件大小 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text1" name="softwareSize" class="form-control "
                                           data-validate-minmax="10,500" data-validate-words="1" required
                                           placeholder="请输入软件大小，单位为MB" value="${appinfo.softwareSize}">
                                </div>
                            </div>
                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    下载次数 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="text1" name="downloads" class="form-control"
                                           data-validate-length-range="20" data-validate-words="1" required
                                           placeholder="请输入下载次数" value="${appinfo.downloads}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label col-lg-2">
                                    所属平台 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <select id="flatformId" name="flatformId" class="form-control" required>

                                    </select>
                                </div>
                            </div>

                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    一级分类 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="hidden" value="${appinfo.categoryLevel1}" id="cl1" />
                                    <select id="categoryLevel1" name="categoryLevel1" class="form-control" required>

                                    </select>
                                </div>
                            </div>
                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    二级分类 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="hidden" value="${appinfo.categoryLevel2}" id="cl2" />
                                    <select id="categoryLevel2" name="categoryLevel2" class="form-control" required>

                                    </select>
                                </div>
                            </div>

                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    三级分类 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="hidden" value="${appinfo.categoryLevel3}" id="cl3" />
                                    <select id="categoryLevel3" name="categoryLevel3" class="form-control" required>

                                    </select>
                                </div>
                            </div>

                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    APP状态 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    待审核
                                </div>
                            </div>
                            <div class=" form-group">
                                <label class="control-label col-lg-2">
                                    应用简介 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                <textarea required placeholder="请输入本软件的相关信息，本信息作为软件的详细信息进行软件的介绍。" name="appInfo"
                                          class="form-control col-md-7 col-xs-12">${appinfo.appInfo}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-lg-2">
                                    LOGO图片 <span class="required">*</span>
                                </label>
                                <div class="col-lg-8">
                                    <input type="file" id="a_logoPicPath" name="a_logoPicPath" class="form-control col-md-7 col-xs-12" value="${appinfo.logoPicPath}" required>
                                    ${fileUploadError }
                                </div>
                            </div>
                            <div class="ln_solid"></div>
                            <div class="form-group">
                                <div class="col-lg-10">
                                        <div style="text-align:center;">
                                            <button type="submit" class="btn btn-success">保存</button>
                                            <button type="button" id="back" class="btn btn-primary">返回</button>
                                        </div>
                                </div>
                            </div>
                        </form>
                        </div>
                    </div>
                </div>
            </div>
    </div>
</div>
</div>
<%@include file="common/footer.jsp" %>
<script src="${pageContext.request.contextPath}/statics/js/appinfoadd.js"></script>
<script src="${pageContext.request.contextPath}/statics/js/appinfomodify.js"></script>